Skip to content

docs: predefine LIBZIM_WITH_XAPIAN for Doxygen to include Xapian meth… - #1136

Merged
kelson42 merged 1 commit into
openzim:mainfrom
Sriram-Nambiar:fix/959-xapian-docs
Oct 5, 2026
Merged

kelson42 merged 1 commit into
openzim:mainfrom
Sriram-Nambiar:fix/959-xapian-docs

Conversation

@Sriram-Nambiar

Copy link
Copy Markdown
Contributor

Fixes #959

When generating documentation, Doxygen evaluates #if defined(LIBZIM_WITH_XAPIAN) as false because the macro is not defined in the Doxygen configuration. Consequently, all Xapian-dependent methods (such as zim::setICUDataDirectory and Xapian search/suggestion APIs) were missing from the generated ReadTheDocs documentation.

Changes

  • In docs/conf.py: Enabled Doxygen preprocessing and macro expansion, and predefined LIBZIM_WITH_XAPIAN=1 and LIBZIM_API=.
  • In .readthedocs.yaml: Ensured doxygen is installed in the build container via apt_packages.

@Sriram-Nambiar

Copy link
Copy Markdown
Contributor Author

Hi @kelson42, if you have some time, please approve the workflow run. Thank you

@kelson42
kelson42 requested review from kelson42 and veloman-yunkan and a balanced review from Copilot October 1, 2026 16:49

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The focused configuration changes correctly expose conditional Xapian APIs during documentation builds.

Review effort: Balanced
Findings: None

What changed in this PR

Updates documentation generation so Xapian-dependent APIs appear in Read the Docs.

Changes:

  • Configures Doxygen preprocessing and Xapian macro definitions.
  • Installs Doxygen in the Read the Docs environment.
File Description
docs/​conf.py Enables preprocessing and predefined macros.
.readthedocs.yaml Adds the Doxygen system package.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@codecov

codecov Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 56.72%. Comparing base (ae0212c) to head (09916e8).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1136   +/-   ##
=======================================
  Coverage   56.72%   56.72%           
=======================================
  Files         100      100           
  Lines        5056     5056           
  Branches     2239     2239           
=======================================
  Hits         2868     2868           
  Misses        714      714           
  Partials     1474     1474           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Sriram-Nambiar

Copy link
Copy Markdown
Contributor Author

Hi @kelson42 just checking in on this, all checks are passing and it is approved please tell me if there is anything else that I need to provide before it can be merged. Thank you!

@kelson42

kelson42 commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

@Sriram-Nambiar Sorry for my lack of feedback. It has been reviewed and I will merge it. Thank you very much!

@kelson42
kelson42 requested a balanced review from Copilot October 5, 2026 12:44

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@kelson42
kelson42 requested a balanced review from Copilot October 5, 2026 12:45

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@kelson42
kelson42 requested a balanced review from Copilot October 5, 2026 12:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@kelson42
kelson42 requested a balanced review from Copilot October 5, 2026 12:48

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@kelson42
kelson42 merged commit e4de4b7 into openzim:main Oct 5, 2026
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Read the doc documentation should include xapian related methods.

4 participants